<? global $lg, $hotel, $products_anews; ?>
<? $current_url = str_replace('http://'.$_SERVER['HTTP_HOST'], '', GetFullUrl()); ?>

<div class="list-hottel">
  <div class="sl-chitiet-ht"> <img src="<?=$FullUrl?>/images/topsl.png" style="float:left;" />
    <div class="m-sl">
      <div id="gallery" class="ad-gallery">
        <div class="ad-image-wrapper"> </div>
        <div class="ad-nav">
          <div class="ad-thumbs">
          	<?
            	if($imgs_hotel)
				{
			?>
            <ul class="ad-thumb-list">
            	<?
                	for($i = 0; $i < count($imgs_hotel); $i++)
					{
						$img = $imgs_hotel[$i];
						$img_link = $FullUrl . '/' . $img['link'];
						$img_name = $img['name_'.$lg];
						//echo $img_link;
				?>
              <li> <a href="<?=$img_link?>"> <img width="90px" height="60px" src="<?=$img_link?>" class="image0" alt="<?=$img_name?>"> </a> </li>
              <?
					}
			  ?>
            </ul>
            <?
				}
			?>
          </div>
        </div>
      </div>
    </div>
    <img src="<?=$FullUrl?>/images/btsl.png" style="float:left;" /> </div>
  <div class="bottom-detail">
  	<?php 
	  	if(isset($_GET["cid"])){
			$link_a = GetProductLink2($hotel, $lg);
		}else{
			$link_a = $prefix_url . $cat1["unique_key_$lg"] . "/" . $cat2["unique_key_$lg"] . "/" . $hotel["unique_key_$lg"] . ".html";
		}
	  	$img = GetImage($hotel['img']);
		$width = fixWidth($img, 284);
		
		$hotel_name = $hotel['name_'.$lg];
		$hotel_address = $hotel['address_'.$lg];
		$hotel_descs = $hotel['descs_'.$lg];
		$hotel_map = $FullUrl.'/'.$hotel['map'];
		$hotel_phone = $hotel['phone'];
		$hotel_websites = $hotel['websites'];
	  ?>
    <h3 class="h3detail-ht">ĐỊA ĐIỂM</h3>
    <p><strong>Loại khách sạn:</strong> Khách sạn vip </p>
    <p><strong>Địa chỉ: </strong> <?=$hotel_address?></p>
    <!---->
    <?
    	if($rooms_hotel)
		{
	?>
    <h3 class="h3detail-ht">Loại phòng</h3>
    <table  width="100%" cellpadding="0" cellspacing="0" class="tbloaip">
      <tr>
        <td rowspan="2">Loại phòng</td>
        <td colspan="2">Giá phòng tại khách sạn</td>
        <td colspan="2" style="background:#d40005; color:#fff;">Giá phòng tại tìm khách sạn</td>
      </tr>
      <tr>
        <td>Đơn</td>
        <td>Đôi</td>
        <td>Đơn</td>
        <td>Đôi</td>
      </tr>
      <?
        	for($i = 0; $i < count($rooms_hotel); $i++)
			{
				$room_hotel = $rooms_hotel[$i];
		?>
      <tr>
      	
        <td><?=$room_hotel['name_'.$lg]?></td>
        <td><?=$room_hotel['cost_simple']?></td>
        <td><?=$room_hotel['cost_double']?></td>
        <td align="center"><p><?=$room_hotel['cost_simple_hotel']?></p>
          <input class="ht-dathang" type="button" value="Đặt Hàng" /></td>
        <td align="center"><?=$room_hotel['cost_double_hotel']?></p>
          <input class="ht-dathang" type="button" value="Đặt Hàng" /></td>
        
      </tr>
      <?
			}
		?>  
    </table>
    <?
		}
	?>
    <h3 class="h3detail-ht">Tiện ích các phòng</h3>
    <table class="tbtienich">
      <tr>
        <td><span>Primier Beach Deluxe</span></td>
        <td></td>
        <td></td>
      </tr>
      <tr>
        <td><img src="<?=$FullUrl?>/images/ok-green.png" />1 Cửa sổ</td>
        <td><img src="<?=$FullUrl?>/images/ok-green.png" />2 Cửa sổ</td>
        <td><img src="<?=$FullUrl?>/images/ok-green.png" />3 Cửa sổ</td>
      </tr>
      <tr>
        <td><img src="<?=$FullUrl?>/images/ok-green.png" />1 Cửa sổ</td>
        <td><img src="<?=$FullUrl?>/images/ok-green.png" />2 Cửa sổ</td>
        <td><img src="<?=$FullUrl?>/images/ok-green.png" />3 Cửa sổ</td>
      </tr>
      <tr>
        <td><img src="<?=$FullUrl?>/images/ok-green.png" />Giường đơn</td>
        <td><img src="<?=$FullUrl?>/images/ok-green.png" />Giường đôi</td>
        <td><img src="<?=$FullUrl?>/images/ok-green.png" />Giường tam</td>
      </tr>
    </table>
    <table class="tbtienich">
      <tr>
        <td><span>Primier Beach Deluxe</span></td>
        <td></td>
        <td></td>
      </tr>
      <tr>
        <td><img src="<?=$FullUrl?>/images/ok-green.png" />1 Cửa sổ</td>
        <td><img src="<?=$FullUrl?>/images/ok-green.png" />2 Cửa sổ</td>
        <td><img src="<?=$FullUrl?>/images/ok-green.png" />3 Cửa sổ</td>
      </tr>
      <tr>
        <td><img src="<?=$FullUrl?>/images/ok-green.png" />1 Cửa sổ</td>
        <td><img src="<?=$FullUrl?>/images/ok-green.png" />2 Cửa sổ</td>
        <td><img src="<?=$FullUrl?>/images/ok-green.png" />3 Cửa sổ</td>
      </tr>
      <tr>
        <td><img src="<?=$FullUrl?>/images/ok-green.png" />Giường đơn</td>
        <td><img src="<?=$FullUrl?>/images/ok-green.png" />Giường đôi</td>
        <td><img src="<?=$FullUrl?>/images/ok-green.png" />Giường tam</td>
      </tr>
    </table>
    <table class="tbtienich">
      <tr>
        <td><span>Primier Beach Deluxe</span></td>
        <td></td>
        <td></td>
      </tr>
      <tr>
        <td><img src="<?=$FullUrl?>/images/ok-green.png" />1 Cửa sổ</td>
        <td><img src="<?=$FullUrl?>/images/ok-green.png" />2 Cửa sổ</td>
        <td><img src="<?=$FullUrl?>/images/ok-green.png" />3 Cửa sổ</td>
      </tr>
      <tr>
        <td><img src="<?=$FullUrl?>/images/ok-green.png" />1 Cửa sổ</td>
        <td><img src="<?=$FullUrl?>/images/ok-green.png" />2 Cửa sổ</td>
        <td><img src="<?=$FullUrl?>/images/ok-green.png" />3 Cửa sổ</td>
      </tr>
      <tr>
        <td><img src="<?=$FullUrl?>/images/ok-green.png" />Giường đơn</td>
        <td><img src="<?=$FullUrl?>/images/ok-green.png" />Giường đôi</td>
        <td><img src="<?=$FullUrl?>/images/ok-green.png" />Giường tam</td>
      </tr>
    </table>
    <h3 class="h3detail-ht">Thông tin chi tiết</h3>
    <div class="ttchitiet">
      <p><?=$hotel_descs?></p>
      <div style="width:686px; float:left;">
        <div class="tt-contact floatleft">
          <ul>
            <li><strong><?=$hotel_name?></strong></li>
            <li><strong>Địa chỉ:</strong> <?=$hotel_address?></li>
            <li><strong>Điện thoại:</strong> <?=$hotel_phone?> </li>
            <li><strong>Website:</strong> <?=$hotel_websites?></li>
          </ul>
          <a href="#" title="Tìm trên google map"><img src="<?=$hotel_map?>" class="floatleft" width="386" /></a> </div>
      </div>
    </div>
  </div>
</div>
